package org.jeecg.modules.sggg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 血压记录表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Data
@TableName("sg_blutdruck_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sg_blutdruck_record对象", description = "血压记录表")
public class SgBlutdruckRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(select = false)
    private String memberName;

    @TableField(select = false)
    private String memberPhone;

    @TableField(select = false)
    private String idCard;

    @TableField(select = false)
    private String avatar;

    @TableField(select = false)
    private String sex;

    @TableField(select = false)
    private String doctorName;

    @TableField(select = false)
    private String threeTag;

    @TableField(select = false)
    @ApiModelProperty(value = "舒张压预警值")
    private String dbpvalWarning;

    @TableField(select = false)
    @ApiModelProperty(value = "收缩压预警值")
    private String sbpvalWarning;

    @TableField(exist = false)
    private List<String> responsibleAgencies;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 舒张压
     */
    @Excel(name = "舒张压", width = 15)
    @ApiModelProperty(value = "舒张压")
    private Double dbpval;
    /**
     * 收缩压
     */
    @Excel(name = "收缩压", width = 15)
    @ApiModelProperty(value = "收缩压")
    private Double sbpval;
    /**
     * 心率
     */
    @Excel(name = "心率", width = 15)
    @ApiModelProperty(value = "心率")
    private Integer heartRate;
    /**
     * 测量时间
     */
    @Excel(name = "测量时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "测量时间")
    private Date measuringTime;
    /**
     * 结果等级 0正常1一级血压 2二级血压 3三级血压 4低血压
     */
    @Excel(name = "结果等级", width = 15)
    @ApiModelProperty(value = "结果等级 0正常1一级血压 2二级血压 3三级血压 4低血压")
    @Dict(dicCode = "blood_level")
    private Integer level;
    /**
     * 居民编号
     */
    @Excel(name = "居民编号", width = 15)
    @ApiModelProperty(value = "居民编号")
    @Dict(dictTable = "sg_member", dicText = "name", dicCode = "id")
    private String memberId;
    /**
     * 是否干预 0干预 1不干预
     */
    @Excel(name = "是否干预", width = 15)
    @Dict(dicCode = "intervene")
    @ApiModelProperty(value = "是否干预 0干预 1不干预")
    private Integer intervene;
    /**
     * 干预内容
     */
    @Excel(name = "干预内容", width = 15)
    @ApiModelProperty(value = "干预内容")
    private String interveneContent;
    /**
     * 干预内容
     */
    @Excel(name = "干预时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date interveneTime;
    /**
     * 干预内容
     */
    @Excel(name = "干预医生", width = 15)
    @ApiModelProperty(value = "干预医生")
    private String interveneUser;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 设备编号
     */
    @Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String deviceId;
    /**
     * 收缩压平均值
     */
    @TableField(exist = false)
    private Double sbpvalAvg;
    /**
     * 舒张压平均值
     */
    @TableField(exist = false)
    private Double dbpvalAvg;
    /**
     * 收缩压最大值
     */
    @TableField(exist = false)
    private Double sbpvalMax;
    /**
     * 舒张压最大值
     */
    @TableField(exist = false)
    private Double dbpvalMax;
    /**
     * 收缩压最小值
     */
    @TableField(exist = false)
    private Double sbpvalMin;
    /**
     * 舒张压最小值
     */
    @TableField(exist = false)
    private Double dbpvalMin;

    /**/
    @TableField(exist = false)
    private String Month;

    @TableField(exist = false)
    private String xyCount;

    @TableField(exist = false)
    private String xtCount;

    @TableField(exist = false)
    private String xzCount;

    @TableField(exist = false)
    private String tzCount;

    @TableField(exist = false)
    private String departName;


}
